package cn.mastor.server;

import cn.mastor.User;
import cn.mastor.config.UserFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server" ,fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserService {
    @GetMapping("/user/getUserById/{id}")
    User getUserById(@PathVariable("id") Long id);
}
